package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.CarTypeCopyMapper;
import com.whq.entity.CarTypeCopy;
import com.whq.service.CarTypeCopyService;

@Service(value = "tcCarTypeCopyService")
public class CarTypeCopyServiceImpl implements CarTypeCopyService {

    @Autowired
    private CarTypeCopyMapper<CarTypeCopy>tcCarTypeCopyMapper;
    
    @Override
    public Integer insertSelective(CarTypeCopy tcCarTypeCopy) throws Exception {
           return this.tcCarTypeCopyMapper.insertSelective(tcCarTypeCopy);
        }

    @Override
    public Integer insertBatch(List<CarTypeCopy> tcCarTypeCopy) throws Exception {
           return this.tcCarTypeCopyMapper.insertBatch(tcCarTypeCopy) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tcCarTypeCopyMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tcCarTypeCopyMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(CarTypeCopy tcCarTypeCopy) {
           return this.tcCarTypeCopyMapper.updateByPrimaryKeySelective(tcCarTypeCopy);
    }

    @Override
    public CarTypeCopy findById(Object id) {
           return (CarTypeCopy) this.tcCarTypeCopyMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<CarTypeCopy> selectByCondition(CarTypeCopy tcCarTypeCopy) {
           return (List<CarTypeCopy>) this.tcCarTypeCopyMapper.selectByCondition(tcCarTypeCopy);
    }

    @Override
    public Integer selectCountByCondition(CarTypeCopy tcCarTypeCopy) {
           return  this.tcCarTypeCopyMapper.selectCountByCondition(tcCarTypeCopy);
    }

}
